package com.mrchi.product.utils;

import com.mrchi.product.viewobject.ResultVO;

/**
 * 返回 ViesObject的工具类
 * @author Administrator
 */
public class ResultVOUtil {

    /**
     * 将返回做成了工具类
     * @param object 返回信息
     * @return 返回工具类对象
     */
    public static ResultVO success(Object object){
        ResultVO resultVO = new ResultVO();
        resultVO.setData(object);
        resultVO.setCode(0);
        resultVO.setMsg("成功");
        return resultVO;
    }
}
